package com.panfeng.xcloud.boss.provider.member.dao.mapper;

import com.panfeng.xcloud.dao.member.entity.UserExchangePwd;
import com.panfeng.xcloud.dao.member.mapper.UserPwdMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserExchangePwdMapperExt extends UserPwdMapper {

    int updatePwd(@Param("userId") String userId, @Param("pwd") String pwd, @Param("pwdType") Integer pwdType, @Param("exchangeType")Integer exchangeType);

    int queryPwdStatus(@Param("userId") String userId, @Param("pwdType") Integer pwdType);

    /**
     * 获取用户交易所密码列表
     * @param userId
     * @param exchangeType
     * @return
     */
    List<UserExchangePwd> queryByUserId(@Param("userId") String userId, @Param("exchangeType") Integer exchangeType);


    /**
     * 查询交易所支持币种
     * @param exchangeType
     * @param bizType
     * @return
     */
    List<String> queryExchangeCoins(@Param("exchangeType")Integer exchangeType,@Param("bizType") Integer bizType);
}